#ifndef _MAIN_WINDOW_
#define _MAIN_WINDOW_

#include <QtGui>
#include <QtUiTools>
#include <QSystemTrayIcon>

class MainWindow : public QWidget
{

    Q_OBJECT

private:
    QStatusBar* pStatusBar;
    QCommandLinkButton* pCommandLinkButton;

    QSystemTrayIcon* pTrayIcon;
    QMenu* trayIconMenu;

    QAction* quitAction;
    QAction* hideAction;

public:
    MainWindow(QWidget* pwgt = 0);
    ~MainWindow();

protected:
     void closeEvent(QCloseEvent *event);

private slots:
    void TrayQuit();
    void IconActivated(QSystemTrayIcon::ActivationReason reason);

private:
    void CreateActions();
    void CreateTray();
    void ConncetInnerObjects();

};

#endif
